﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ModelLayer;

namespace ShopKart.Areas.Admin.Models
{
    public class CategoryVm
    {
        public IEnumerable<Category> Categories { get; set; }

        public long CategoryId { get; set; }

        [Display(Name = "Parent Category")]
        public long ParentId { get; set; }

        [Required(ErrorMessage = "Please Enter Category Name")]
        [Display(Name = "Category Name")]
        public string CategoryName { get; set; }
    }
}
